import type { PropType } from "vue"
export type ButtonType = 'primary' | 'success' | 'danger' | 'warning' | 'info' 
export type ButtonSize = 'large' | 'small' 
export type nativeType = 'button' | 'submit' | 'reset'
export interface ButtonProps {
    type?:ButtonType,
    size?:ButtonSize, // 添加size属性
    plain?:boolean,
    round?:boolean,
    circle?:boolean,
    disabled?:boolean,
    nativeType?:nativeType,
    autofocus?:boolean,
    // isLoding?:boolean,
    isLoading?:boolean
    icon?:string,
}
export interface ButtonInstance {
    ref:HTMLButtonElement,
}
//类型声明
export const buttonProps = {
    type:{
        type:String as PropType<ButtonProps>
    },
    size:{
        type:String as PropType<ButtonSize>
    },
    plain:{
        type:Boolean
    },
    round:{
        type:Boolean
    },
    circle:{
        type:Boolean
    },
    disabled:{
        type:Boolean
    }
}